package cn.xbtop.blog.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/4/16 14:01
 */
//@Configuration
//从配置文件中读取的注解
@ConfigurationProperties(prefix = "upload")
@Component
@Data
public class UploadConfig {
    private String baseUrl;

    private List<String> allowTypes;
}
